package com.wx.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wx.entity.WxUserEvent;
import com.wx.entity.WxUserEventExample;
import com.wx.entity.WxUserEventGroupBy;
import com.wx.vo.WxUserEventResult;

public interface WxUserEventMapper {
    int countByExample(WxUserEventExample example);

    int deleteByExample(WxUserEventExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(WxUserEvent record);

    int insertSelective(WxUserEvent record);

    List<WxUserEvent> selectByExample(WxUserEventExample example);

    List<WxUserEventGroupBy> selectGroupByDate(@Param("open_id") String open_id);

    WxUserEvent selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") WxUserEvent record, @Param("example") WxUserEventExample example);

    int updateByExample(@Param("record") WxUserEvent record, @Param("example") WxUserEventExample example);

    int updateByPrimaryKeySelective(WxUserEvent record);

    int updateByPrimaryKey(WxUserEvent record);
    
    List<WxUserEventResult> selectFanCountByMonth(@Param("wxid")String wxid, @Param("month")Integer month);
    
    List<WxUserEventResult> selectFanCountByMonthShort(@Param("wxid")String wxid, @Param("month")Integer month);
}